#include "SQLColumnPrimaryKey.h"

#include "../../visitor/SQLASTVisitor.h"

SQLColumnPrimaryKey::SQLColumnPrimaryKey()
{
}

void SQLColumnPrimaryKey::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLColumnPrimaryKey)))
  {
    acceptChild(visitor, this->getName());
  }
  visitor->endVisit(SharedObject(SQLColumnPrimaryKey));
}

SQLObject_ptr SQLColumnPrimaryKey::clone()
{
    SQLObject_ptr clone_tmp = SQLColumnPrimaryKey_ptr(new SQLColumnPrimaryKey());
    SQLColumnPrimaryKey_ptr x = std::dynamic_pointer_cast<SQLColumnPrimaryKey>(clone_tmp);
  // SQLColumnPrimaryKey *x = new SQLColumnPrimaryKey();

  SQLConstraintImpl::cloneTo(std::dynamic_pointer_cast<SQLConstraintImpl>(x));

  return x;
}
